import React, { Component } from 'react'
import { addState } from '../high/index2'

class Box extends Component {
    render() {
        const { count, add } = this.props
        return (
            <div>
                Box -- { count }
                <button onClick = { add }>
                    +
                </button>
            </div>
        )
    }
}

Box = addState(Box)

export default Box
